import React, {useState} from "react";
import "./css/App.css";
import PortalDialog from "./components/PortalDialog";

export default function App() {
    const [isShow, setIsShow] = useState(false);

    return <div className="box">
        <div className="left"></div>
        <div className="right">
            <button onClick={() => setIsShow(true)}>show</button>
            {isShow && <PortalDialog close={() => setIsShow(false)} />}
        </div>
    </div>;
}